Security News
Input Validation Vulnerabilities Dominate MITRE's 2024 CWE Top 25 List
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
anchor-link-browser-transport
Advanced tools
A transport library for usage of Anchor Link within a web browser environment.
A transport is required for Anchor Link to communicate with clients. In most examples we use the browser transport with no configuration, like so:
const transport = new AnchorLinkBrowserTransport()
const link = new AnchorLink({transport})
Parameters can be passed to the transport during construction as an object, allowing for the following optional changes:
const transport = new AnchorLinkBrowserTransport({
/** CSS class prefix, defaults to `anchor-link` */
classPrefix: 'my-css-prefix',
/** Whether to inject CSS styles in the page header, defaults to true. */
injectStyles: true,
/** Whether to display request success and error messages, defaults to true */
requestStatus: false,
/** Local storage prefix, defaults to `anchor-link`. */
storagePrefix: 'my-localstorage-prefix',
/**
* Whether to use Greymass Fuel for low resource accounts, defaults to false.
* Note that this service is not available on all networks, and will automatically
* determine based on chain id if it should be enabled or not.
*/
disableGreymassFuel: false,
/** Referral account to use for Greymass Fuel. */
fuelReferrer: 'teamgreymass',
})
const link = new AnchorLink({transport})
You need Make, node.js and yarn installed.
Clone the repository and run make
to checkout all dependencies and build the project. See the Makefile for other useful targets. Before submitting a pull request make sure to run make lint
.
Made with ☕️ & ❤️ by Greymass, if you find this useful please consider supporting us.
FAQs
Vanilla JS browser transport for Anchor Link
The npm package anchor-link-browser-transport receives a total of 891 weekly downloads. As such, anchor-link-browser-transport popularity was classified as not popular.
We found that anchor-link-browser-transport demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.